﻿using ProTrack.Dto;
using ProTrack.Entity;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace ProTrack.IServices.PurchaseOrder
{
    public interface IOrderPoServices
    {
        public Task<IEnumerable<OrderPo>> GetAllAsync();
        public Task<IEnumerable<OrderPo>> GetAsync(int PageIndex,int PageSize,string Number,string VendorId, string WarehouseId,int Status=-1);
        public Task<int> GetCountAsync(string Number, string VendorId, string WarehouseId, int Status = -1);
        public Task<IEnumerable<OrderPoItemDto>> GetOrderPoIdAsync(string OrderPoId ,string WarehouseId);
        public Task<bool> UpdateAsync(OrderPo model, List<OrderPoItem> list);
        public Task<bool> AddAsync(OrderPo model,List<OrderPoItem> list);
        public Task<bool> DeleteAsync(int[] Ids);
        public Task<bool> DeleteAsync(int Id);
        public Task<bool> UpdateOrderPoStatus(long  Id, int Status);

    }
}
